<table class="table table-border table-bordered table-hover table-bg">
	<thead>
		<tr class="text-c">
			<th>编号</th>
			<th>房间号</th>
			<th>姓名</th>
			<th>表类型</th>
			<th>起数</th>
			<th>止数</th>
			<th>使用数</th>
			<th>费率</th>
			<th>使用金额(元)</th>
			<th>欠费金额(元)</th>
			<th>余额</th>
			<th>状态</th>
			<th>抄表日期</th>
		</tr>
	</thead>
	<tbody>
		<?php if(is_array($list) && count($list)){ foreach($list as $k=>$ls){ ?>
			<?php $rowspan = count($ls['list']); foreach($ls['list'] as $kk=>$lls){ ?>
				<tr class="text-c">
				<?php if($kk==0){ ?>
					<td rowspan="{$rowspan}" style="background-color: #ffffff"><?php echo ($page-1)*C('PAGE_SIZE')+($k+1); ?></td>
					<td rowspan="{$rowspan}" style="background-color: #ffffff">{$ls['roomnumber']}</td>
					<td rowspan="{$rowspan}" style="background-color: #ffffff">{$ls['member_nick']}</td>
				<?php } ?>
					<td>{$lls['eqmtitle']}</td>
					<td>{$lls['real_start_number']/10}</td>
					<td>{$lls['last_number']/10}</td>
					<td><?php echo ($lls['last_number'] - $lls['real_start_number'])/10; ?></td>
					<td>{$lls['rates']}</td>
					<td><?php echo sprintf("%.2f", ($lls['last_number'] - $lls['real_start_number'])/10 * $lls['rates']); ?></td>
					<td><?php echo $lls['balance'] > 0 ? '-'. $lls['balance'] : $lls['balance']; ?></td>
				<?php if($kk==0){ ?>
					<td rowspan="{$rowspan}" style="background-color: #ffffff">{$ls['point']}</td>
				<?php } ?>	
					<td><?php echo !$lls['state'] ? '停止' : '启用'; ?></td>
					<td><?php echo date('Y-m-d H:i', $lls['updatetime']); ?></td>
				</td>
			<?php } ?>
		<?php }}else{ ?>
		<tr class="text-c">
			<td colspan="14">暂无数据...</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<!--page-->
<include file="Common/page" />